Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing db_name param to the describeCollection() #373

Merged
merged 7 commits into from
Nov 13, 2024

Conversation

rashgaroth
Copy link
Contributor

Description

I've got an error when search with the specific db name, the error is : Cannot read properties of undefined (reading nq), that's because the code Data.ts does not passing the db_name parameter

Summary

This pull request to milvus/grpc/Data.ts includes changes to improve the handling of collection requests in the search method. The most important changes include importing the DescribeCollectionReq type and modifying the search method to use a default collection request.

Improvements to collection request handling:

  • milvus/grpc/Data.ts: Added the DescribeCollectionReq import to support type checking for collection requests.
  • milvus/grpc/Data.ts: Modified the search method to use a default describeCollectionRequest object and conditionally add the db_name if present in the request.

…atabase is not passed to `describeCollection` function
@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rashgaroth

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot
Copy link

Welcome @rashgaroth! It looks like this is your first PR to milvus-io/milvus-sdk-node 🎉

@shanghaikid
Copy link
Contributor

please remove these lock files.

This reverts commit 9c4d8e5.
This reverts commit 8315115.
This reverts commit 4f23775.
@rashgaroth
Copy link
Contributor Author

please remove these lock files.

done @shanghaikid

@shanghaikid shanghaikid merged commit d005aaf into milvus-io:main Nov 13, 2024
2 of 3 checks passed
shanghaikid pushed a commit that referenced this pull request Dec 16, 2024
* Fix "Cannot read properties of undefined reading nq" because of the database is not passed to `describeCollection` function

* Delete package-lock.json

* Delete yarn.lock

* Revert "Delete yarn.lock"

This reverts commit 9c4d8e5.

* Remove lock files

This reverts commit 8315115.

* Revert "Remove lock files"

This reverts commit 4f23775.

* Remove lock files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants